#include "CMath.h"
CMath::CMath(int inIFLag): iFlag(inIFLag){}

int CMath::GetIFlag(){
	return iFlag;
}

void CMath::SetIFlag(int inIFlag){
	iFlag = inIFlag;
}

CCircle::CCircle(): maCenter(0, 0), fRadius(0.0), CMath(1){}

CCircle::CCircle(CPoint inMaCenter, float inFRadius): maCenter(inMaCenter), fRadius(inFRadius), CMath(1){}

CPoint CCircle::GetMaCenter(){
	return maCenter;
}
void CCircle::SetMaCenter(CPoint inMaCenter){
	maCenter = inMaCenter;
}

float CCircle::GetFRadius(){
	return fRadius;
}

void CCircle::SetFRadius(float inFRadius){
	fRadius = inFRadius;
}

CRectangle::CRectangle(): maPointA(CPoint()), maPointB(CPoint()), CMath(2){}
CRectangle::CRectangle(CPoint inMaPointA, CPoint inMaPointB): maPointA(inMaPointA), maPointB(inMaPointB), CMath(2){}
CPoint CRectangle::GetMaPointA(){
	return maPointA;
}

CPoint CRectangle::GetMaPointB(){
	return maPointB;
}

void CRectangle::SetMaPointA(CPoint inMaPointA){
	maPointA.CopyCPoint(inMaPointA);
}

void CRectangle::SetMaPointB(CPoint inMaPointB){
	maPointB.CopyCPoint(inMaPointB);
}